﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JXT.PrimaryKey.Batman.Collections;
using JXT.PrimaryKey.Batman.Domain.Services;
using JXT.PrimaryKey.Batman.Domain.Quotation.Models;
using JXT.PrimaryKey.Batman.Domain.Specifications;

namespace JXT.PrimaryKey.Batman.Domain.Quotation.Services
{
    public interface ISecuritiesBindingService
    {

        /// <summary>
        /// 增加证劵绑定信息
        /// </summary>
        /// <param name="entity">证劵绑定实体</param>
        void Save(SecuritiesBinding entity);

        /// <summary>
        /// 获取证劵信息
        /// </summary>
        /// <param name="code">股票代码</param>
        /// <param name="type">市场类型</param>
        /// <returns>证劵绑定实体</returns>
        SecuritiesBinding GetSingle(string code, MarketType type);

        /// <summary>
        /// 获取证劵绑定信息
        /// </summary>
        /// <returns>获取证劵绑定信息集合</returns>
        IEnumerable<SecuritiesBinding> GetList();
    }
}
